package com.woniuxy.springbootmybatis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author linke
 * @version 1.0
 * @className: User
 * @description: TODO 类描述
 * @date 2021/11/16 20:02
 */
@ApiModel//声明属性为模型
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@RequiredArgsConstructor//自定义构造
public class User {
    @NonNull
    @ApiModelProperty(value = "uid",required = true,dataType = "int")//参数注解
    private Integer uid;
    @NonNull
    @ApiModelProperty(value = "name",required = true,dataType = "String")
    private String name;
    @NonNull
    @ApiModelProperty(value = "age",required = true,dataType = "int")
    private Integer age;
    @ApiModelProperty(value = "uid",dataType = "Date")
   /* @JsonFormat(yy-mm-dd hh-mm-ss)*/
    private Date birthday;
}
